<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title></title>
		<link rel="stylesheet" type="text/css" href="../css/reset.css"/>
		<link rel="stylesheet" type="text/css" href="../css/iconfont.css"/>
		<link rel="stylesheet" type="text/css" href="../css/mynews.css"/>
		<script type="text/javascript" src="../js/jquery-2.0.3.js"></script>
		<script type="text/javascript" src="../js/rem.js"></script>
		<script type="text/javascript">
			$(window).load(function() {
				$('#box').delay(200).show()
			})
		</script>
	</head>
	<body>
		<!--页面加载 开始-->
		  <!--<div id="preloader">
		    <div id="status">
		      <p class="center-text"><span>拼命加载中···</span></p>
		    </div>
		  </div>-->
		  <!--页面加载 结束--> 
		<div id="box">
			<!--头部区-->
			<header class="mynews-head">
				<i onclick="goBack()" class="iconfont">&#xe621;</i>
				<h2>消息通知</h2>
				<p class="mynews-delect">编辑</p>
		   </header>
		  <!--   内容区-->
		    <section class="mynews-cont"> 
		    	<ul class="mynews-content">
		    		<!--<li class="clear">
		    			<img class="mynews-content-left" src="../img/hand.jpg"/>
		    			<div class="mynews-content-right clear">
		    				<div class="mynews-content-cont">
		    					<h2>官方通知</h2>
			    				<p>一周前</p>
			    				<p>Hi+5这是上线增加了许多新的工能！通过标签能快查找更多相关内容</p>
		    				</div>
		    				<div class="mynews-content-content">
		    					<i class="iconfont mynews-content-show">&#xe62d;</i>
		    					<i class="iconfont mynews-content-delect">&#xe62e;</i>
		    				</div>
		    			</div>
		    		</li>
		    		<li class="clear">
		    			<img class="mynews-content-left" src="../img/hand.jpg"/>
		    			<div class="mynews-content-right clear">
		    				<div class="mynews-content-cont">
		    					<h2>官方通知</h2>
			    				<p>一周前</p>
			    				<p>Hi+5这是上线增加了许多新的工能！通过标签能快查找更多相关内容</p>
		    				</div>
		    				<div class="mynews-content-content">
		    					<i class="iconfont mynews-content-show">&#xe62d;</i>
		    					<i class="iconfont mynews-content-delect">&#xe62e;</i>
		    				</div>
		    			</div>
		    		</li>-->
		    	</ul>
		    	<div class="mynews-content-foot">
		    		无更多内容
		    	</div>
		    </section>
		    
		</div>
	</body>
	<script type="text/javascript" src="../js/reset.js"></script>
	
	<script type="text/javascript" src="../js/iscroll.js"></script>
	<script type="text/javascript">
			var num=0; 
			$('.mynews-delect').click(function(e){ 
			if(num++ %2 == 0){ 
			$('.mynews-content-delect').show()
			$('.mynews-content-show').hide()
			 $('.mynews-content-delect').on('click',function(){
			   $(this).parent().parent().parent().remove()  
		     })
			}else{ 
			$('.mynews-content-delect').hide()
			$('.mynews-content-show').show()
			} 
			e.preventDefault(); //阻止元素的默认动作（如果存在） 
			}); 
		  $('.mynews-content-show').on('click',function(){
		  	window.location.href='fornews.html'
		  })
		/*my的信息通知*/
		 var b=localStorage.getItem("user_id")
		$.ajax({
            type: 'POST',
            url: 'http://192.168.199.114:8080/HJF/user/get_club_user_list.do',
            dataType: 'JSON',
            data:{user_id:b},
            success: function(data){
            	console.log(data)
            	/*游戏分类*/
            	/*$.each(data.game_list, function(index) {
            	  var aLi=$('<li class="clear">'+
		    			'<img class="mynews-content-left" src="'../img/hand.jpg'"/>'+
		    			'<div class="mynews-content-right clear">'+
		    				'<div class="mynews-content-cont">'+
		    					'<h2>'官方通知'</h2>'+
			    				'<p>'一周前'</p>'+
			    				'<p>'Hi+5这是上线增加了许多新的工能！通过标签能快查找更多相关内容'</p>'+
		    				'</div>'+
		    				'<div class="mynews-content-content">'+
		    					'<i class="iconfont mynews-content-show">&#xe62d;</i>'+
		    					'<i class="iconfont mynews-content-delect">&#xe62e;</i>'+
		    				'</div>'+
		    			'</div>'+
		    		'</li>')
            	$('.mynews-content').append(aLi)
            	});*/
            	console.log(data.game_list)
            },
            error: function(xhr, type){
            }
       });
	</script>
	</script>
</html>
